﻿namespace ChampionsLeagueBets.Web.Mvc.Common
{
	public class ActionConfirmation
	{
		public static string TempDataKey = "ActionConfirmationKey";

		public bool WasSuccessful { get; set; }
		public string Message { get; set; }

		protected ActionConfirmation(){}

		public static ActionConfirmation CreateSuccess(string message)
		{
			var actionConfirmation = new ActionConfirmation {Message = message, WasSuccessful = true};
			return actionConfirmation;
		}

		public static ActionConfirmation CreateError(string message)
		{
			var actionConfirmation = new ActionConfirmation { Message = message, WasSuccessful = false };
			return actionConfirmation;
		}
	}
}